<?
	$attributes = array('class' => 'email', 'id' => 'checknew');
	echo form_open($this->_module_name.'/banner/dels', $attributes);
?>
<input type="hidden" name="offset" value="<?=(int)$offset?>">
<table class="admindata">
    <thead>
        <tr>
            <th colspan="6"> <input type="submit" onclick="return verify_del();" name="btn_submit" class="submit" value="<?=lang('delete');?>">
                <?=lang('total');?>
                <?=$num?>
                <?=lang('record');?>
                <span class="pages">
                <?=$pagination?>
                </span> </th>
        </tr>
        <tr>
            <th class="checkbox"><input type="checkbox" name="sa" id="sa" onclick="check_chose('sa', 'ar_id[]', 'checknew');" /></th>
            <th width="212px"><?=lang('banner.name');?></th>
            <th>Picture</th>
            <th width="112px">Date</th>
            <th width='120'><?=lang('functions');?></th>
        </tr>
    </thead>
    <?
	$k=1;
	foreach($list as $rs):
	$filename = ($rs->lb_image) ? base_url_site().'uploads/banner/'.$rs->lb_image : '' ;
	$images = fn_show_banner($filename, $rs->lb_url, '', 100) ;
?>
    <tr class="row<?=$k?>">
        <td><input type="checkbox" name="ar_id[]" value="<?=$rs->banner_id?>"></td>
        <td><a href="<?=$rs->lb_url?>"><?=$rs->lb_title?></a></td>
        <td><a href="<?=$rs->lb_url?>"><?=$images?></a></td>
        <td><?=date("H:i d/m/Y", strtotime($rs->dt_create))?></td>
        <td align="center"><?=icon_edit($this->_module_name.'/banner/edit/'.$rs->banner_id)?>
            <span id="publish<?=$rs->banner_id?>"><?=icon_active("'fm_banner'","'banner_id'",$rs->banner_id,$rs->bl_active)?></span>
            <?=icon_del($this->_module_name.'/banner/del/'.$rs->banner_id.'/'.(int)$offset)?></td>
    </tr>
    <?
	$k=1-$k;
	endforeach;
?>
    <tfoot>
    <td colspan="6"><input type="submit" class="submit" onclick="return verify_del();" name="btn_submit" value="<?=lang('delete');?>">
            <?=lang('total');?>
            <?=$num?>
            <?=lang('record');?>
            <span class="pages">
            <?=$pagination?>
            </span></td>
            </tfoot>
</table>
<?=form_close()?>
